import {Message} from 'iview'
import Vue from 'vue'
import Vuex from 'vuex'
//因为axios库在uni-app中不能用，为统一接口代码换成了flyio
//import axios from './axios'
//import VueAxios from 'vue-axios'
import {sync} from 'vuex-router-sync'
import App from './App'
import router from './router'
import store from './store'

// 插件
Vue.use(Vuex)
//Vue.use(VueAxios, axios)
sync(store, router)

Vue.prototype.$Message = Message;
// 配置
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: {
    App
  }
})
